<script setup lang="ts">
import $bus from "@/bus";

const handle = () => {
  $bus.emit("update", '🚀');
}
</script>

<template>
  <div class="container">
    <button @click="handle">发送🚀</button>
  </div>
</template>

<style scoped>
.container {
  width: 400px;
  height: 200px;
  background: hotpink;
}
</style>